import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.CommonDataSource;
import javax.sql.DataSource;
import java.sql.SQLException;
import java.util.concurrent.CompletableFuture;

/**
 * @auther 尚智江
 * @Date 2022/5/13 23:43
 */
public class Exam {
    public static DataSource dataSource = null;
    static {
        ComboPooledDataSource comboPooledDataSource = new ComboPooledDataSource("itcast");
        dataSource = comboPooledDataSource;
    }

    public static void main(String[] args) throws SQLException {
        System.out.println(dataSource.getConnection());
    }
}
